﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System;
[Serializable]
public class Propety<T>
{
    private T mValue;
    public Propety()
    {

    }
	
    public Propety(T iniValue)
    {
        mValue = iniValue;
    }

    private event Action mOnValueChangedEvent;
    public T Value
    {
        get
        {
            return mValue;
        }
        set
        {
            if (!value.Equals(mValue))
            {
                mValue = value;
                mOnValueChangedEvent.Invoke();
            }
        }
    }


}
